package com.databasedictionary.utils;

import javax.servlet.http.HttpServletResponse;
import java.util.Date;

public class ZIPUtil {
    public static void craeteZipPath(String path, HttpServletResponse response) throws Exception {
        /*生成的全部代码压缩成zip文件*/

        FileZip.zip(path, path+"code.zip");

        /*下载代码*/
        FileDownload.fileDownload(response, path+"code.zip", "code.zip");
    }
}
